@extends('Admin.layout.layout')
 @section('title')
    <title>志愿者信息添加</title>
    <script type="text/javascript" charset="utf-8" src="{{asset('/public/ueditor1_4_3_3-utf8-php/utf8-php/ueditor.config.js')}}"></script>
    <script type="text/javascript" charset="utf-8" src="{{asset('/public/ueditor1_4_3_3-utf8-php/utf8-php/ueditor.all.min.js')}}"> </script>
    
    <script type="text/javascript" charset="utf-8" src="{{asset('/public/ueditor1_4_3_3-utf8-php/utf8-php/lang/zh-cn/zh-cn.jsSS')}}"></script>
    @show
@section('con')
<div class="row"> 
   <div class="col-lg-12"> 
    <h1 class="page-header">添加志愿者信息</h1> 
    <h1 class="page-header">修改志愿者信息</h1> 
   </div> 
   <!-- /.col-lg-12 --> 
  </div> 
  <!-- /.row --> 
  <div class="row"> 
   <div class="col-lg-12"> 
    <div class="panel panel-default"> 
     <div class="panel-heading">
      
     </div> 
     <div class="row">
      
     </div> 


     <div class="panel-body"> 
      <div class="row col-xd-4 col-xd-offset-4"> 
       <div class="col-md-6 col-md-offset-3">
      
       <div class="col-md-6 col-md-offset-3">
      
        <form role="form" action="{{url('/admin/loveperson/update')}}" method="post">
        <select class="form-control" name="status">
        @if($users->status == 0)
          <option selected >未审核</option>
        @elseif($users->status == 1)
        <option selected >已审核</option>
        @endif
          <option value="1">已审核</option>
          <option value="0">未审核</option>
         
        </select>
        <br> 
        <div class="form-group"> 
          <label>姓名</label> 
          <input class="form-control" name="name"  value="{{$users->name}}" /> 
        </div class="row col-md-6 col-offset-3">
        <select class="form-control" name="sex">
        @if($users->sex == 0)
          <option selected >女</option>
        @elseif($users->sex == 1)
        <option selected >男</option>
        @endif
          <option value="0">女</option>
          <option value="1">男</option>
         
        </select>
        <br> 
        <div class="form-group"> 
          <label>年龄</label> 
          <input class="form-control" name="age" value="{{$users->age}}"/> 
        </div class="row col-md-6 col-offset-3"> 
        <div class="form-group"> 
          <label>联系电话</label> 
          <input class="form-control" name="phone"  value="{{$users->phone}}" /> 
        </div class="row col-md-6 col-offset-3">
        <input type="hidden" name="id" value="{{$users->id}}">
        
        <button class="btn btn-success" type="submit">确定</button>
         {{csrf_field()}}
         
        </form>
         <div class="form-group"> 
         </div>  
       <!-- /.col-lg-6 (nested) --> 
       </div>
       </div>
      </div> 
      <!-- /.row (nested) --> 
     </div> 
     <!-- /.panel-body --> 
    </div> 
    <!-- /.panel --> 
   </div> 
   <!-- /.col-lg-12 --> 
  </div> 
  <!-- /.row --> 

           


@endsection
